package com.wframe.project.jnd.wx.wxImpl;

import com.wframe.framework.spring.SpringContextHolder;


public class WeixAccountConfig {

    private String apiUrl="https://api.weixin.qq.com/cgi-bin";
    private String appId;
    private String secret;
    private String aesKey;
    private String token;
    private String oauthUrl="https://api.weixin.qq.com/sns/oauth2/access_token";
    private String templateid;

    private String payApiUrl;//微信支付下单借口url
    private String mch_id;//微信支付分配的商户号
    private String payKey;//微信支付分配的商户Key
    private String payDir;//微信支付授权目录
    private String notifyUrl;//回调地址

    public static WeixAccountConfig getConfig(){
    	return SpringContextHolder.getBean("weixConfig");
    }

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public String getSecret() {
        return secret;
    }

    public void setSecret(String secret) {
        this.secret = secret;
    }

    public String getAesKey() {
        return aesKey;
    }

    public void setAesKey(String aesKey) {
        this.aesKey = aesKey;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getOauthUrl() {
        return oauthUrl;
    }

    public void setOauthUrl(String oauthUrl) {
        this.oauthUrl = oauthUrl;
    }
    public String getApiUrl() {
        return apiUrl;
    }

    public void setApiUrl(String apiUrl) {
        this.apiUrl = apiUrl;
    }
    public String getTemplateid() {
        return templateid;
    }
    public void setTemplateid(String templateid) {
        this.templateid = templateid;
    }

	public String getMch_id() {
		return mch_id;
	}

	public void setMch_id(String mch_id) {
		this.mch_id = mch_id;
	}

	public String getPayKey() {
		return payKey;
	}

	public void setPayKey(String payKey) {
		this.payKey = payKey;
	}

	public String getPayApiUrl() {
		return payApiUrl;
	}

	public void setPayApiUrl(String payApiUrl) {
		this.payApiUrl = payApiUrl;
	}

	public String getPayDir() {
		return payDir;
	}

	public void setPayDir(String payDir) {
		this.payDir = payDir;
	}

    public void setNotifyUrl(String notifyUrl) {
        this.notifyUrl = notifyUrl;
    }

    public String getNotifyUrl() {
        return notifyUrl;
    }

}
